<?php defined('SYSPATH') or die('No direct script access.');
class Controller_LoginTemplate extends Controller_Template
  {
     public $template = 'defaults/login';

     /**
      * Initialize properties before running the controller methods (actions),
      * so they are available to our action.
      */
     public function before()
      {
         parent::before();       
         
         if($this->auto_render)
          {
            $this->template->title            = '';
            $this->template->meta_keywords    = '';
            $this->template->meta_description = '';
            $this->template->meta_copywrite   = '';
            $this->template->header           = '';
            $this->template->content          = '';
            $this->template->menu		      = '';
            $this->template->footer           = '';
            $this->template->styles           = array();
            $this->template->scripts          = array();
          }
      }

     /**
      * Fill in default values for our properties before rendering the output.
      */
     public function after()
      {
         if($this->auto_render)
          {
             $styles                  = array('assets/css/style.css' => 'screen');
             $scripts                 = array('assets/js/js.js', 'https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js');            
             
             $styles                  	= array('assets/css/style.css' => 'screen');
             $scripts                 	= array('assets/js/js.js', 'https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js');            
             
             $header					= new View('defaults/header.php');
             $footer					= new View('defaults/footer.php');
             
             $this->template->header	= $header;
             $this->template->footer	= $footer;
             
             $this->template->styles     = array_reverse(array_merge($this->template->styles, $styles));
             $this->template->scripts    = array_reverse(array_merge($this->template->scripts, $scripts));
          }

         parent::after();
      }
 }